/*
* $Id: TableXml.h 146 2010-09-20 19:41:07Z volok-aleksej@yandex.ru $
*
* Copyright 2010 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _TABLE_XML_H_
#define _TABLE_XML_H_

#include <tinyxml.h>

class CTableXml
{
	TiXmlDocument doc;
	std::map<int, std::map<int, int> > m_aCelsRow;
	std::map<int, int> m_aHeader;
private:
	void Init();
	void Save();
public:
	CTableXml();
	~CTableXml();
public:
	int GetCellRowCy(int nId, int nType);
	int GetHeaderCx(int nId);
	void SetCellRowCy(int nId, int nType, int nCy);
	void SetHeaderCx(int nId, int nCx);
};

extern CTableXml g_tableXml;

#endif/*_TABLE_XML_H_*/